#include<stdio.h>

int main()
{
    int n, cost, a = 0;
    scanf("%d %d", &n, &cost);
    int m, w, k;
    for(m = 0; m <= cost / 3; m ++)
    {
        for(w = 0; w <= cost / 2; w ++)
        {
            for(k = 0; k <= cost; k ++)
            {
                if(m + w + k == n && m * 3 + w * 2 + k == cost)
                {
                    printf("%d %d %d\n", m, w, k);
                    a = 1;
                }
            }
        }
    }
    if(a == 0)
        printf("No answer");
    return 0;
}
/*
man 3
woman 2
kid 1
m + w + k = n
m * 3 + w * 2 + k * 1 = cost
*/